
            <h1>
              提交新团购 
            </h1>

            <h2>
              <?php echo $result ?>
            </h2>
          </div>
              
              <?php

                echo form_open_multipart('groupadmin/newgroup');

                echo "<br/>";
                echo form_label('团购名称：','group_name');
                echo form_input('group_name', '');
                echo "<br/><br/>";

                echo form_label('单价（元）：','group_price');
                echo form_input('group_price', '');
                echo "<br/><br/>";

                // echo form_label('打印机IMEI号码','store_printer_IMEI');
                // echo "<br/>";
                // echo form_input('store_printer_IMEI',$store[0]['store_printer_IMEI']);
                // echo "<br/>";

                echo form_label('团购LOGO：','group_logo');
                echo form_upload('group_logo', '修改LOGO');
                echo "<br/><br/>";

                echo form_label('简要介绍：','brief_des');
                echo form_textarea('brief_des', '');
                echo "<br/><br/>";

                echo form_label('详细介绍：','detail_des');
                echo form_textarea('detail_des', '');
                echo "<br/><br/>";

                echo form_label('使用说明：','use_guide');
                echo form_textarea('use_guide', '');
                echo "<br/><br/>";

                echo form_label('购买截止时间：','buy_deadline');
                echo form_input('buy_deadline', '');
                echo "（格式：yyyy-mm-dd hh:mm:ss，如：2014-08-06 18:20:00）";
                echo "<br/><br/>";

                echo form_label('使用截止时间（不早于"购买截止时间"）：','use_deadline');
                echo form_input('use_deadline', '');
                echo "（格式：yyyy-mm-dd hh:mm:ss，如：2014-08-06 18:20:00）";
                echo "<br/><br/>";

                echo form_label('限购数量：','group_capacity');
                echo form_input('group_capacity', '');
                echo "<br/><br/>";

                echo form_label('限购人数：','user_capacity');
                echo form_input('user_capacity', '');
                echo "<br/><br/>";

                echo form_label('每人每次限购数量：','per_user_num');
                echo form_input('per_user_num', '');
                echo "<br/><br/>";

                echo form_label('每人限购总量（不小于"每人每次限购数量"）：','per_user_capacity');
                echo form_input('per_user_capacity', '');
                echo "<br/><br/>";

                echo form_label('商家名称：','store_name');
                echo form_input('store_name', '');
                echo "<br/><br/>";

                echo form_label('商家电话：','store_phone');
                echo form_input('store_phone', '');
                echo "<br/><br/>";

                echo form_label('商家地址：','store_addr');
                echo form_input('store_addr', '');
                echo "<br/><br/>";

                echo form_label('第三方KEY：','3rdKey');
                echo form_input('3rdKey', '');
                echo "<br/><br/>";

                echo form_submit('submit', '添加团购');
                echo "      <a href=" . site_url('groupadmin/grouplist') . ">取消添加</a>";
                echo form_close();
                echo "<br/><br/>";
               ?>